package cn.zwx.common.canal.event;

import cn.zwx.common.canal.bo.CanalEntryBO;
import org.springframework.context.ApplicationEvent;

/**
 *  事件基类
 *
 * @author zhangwenxue*/
public abstract class AbstractCanalEvent extends ApplicationEvent {

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public AbstractCanalEvent(CanalEntryBO source) {
        super(source);
    }

    public CanalEntryBO getEntry() {
        return (CanalEntryBO) source;
    }

}
